<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <base href="{$Think.RES_URL}MultilFileUpload/"/>
    <link rel="stylesheet" type="text/css" href="css/diyUpload.css">
    <link rel="stylesheet" type="text/css" href="css/webuploader.css">
    <script src="js/jquery.js"></script>
    <script src="js/webuploader.html5only.min.js"></script>
    <script src="js/diyUpload.js"></script>
    <style>
        /**{ margin:0; padding:0;}*/
        .uploader_container *{
            margin:0; padding:0;
        }
    </style>
</head>
<body>
<div class="uploader_container">
    <div style="margin:50px auto; width:540px; min-height:400px; background:#FF9">
        <div id="uploader">

        </div>
    </div>
</div>

    <script type="text/javascript">

        /*
         * 服务器地址,成功返回,失败返回参数格式依照jquery.ajax习惯;
         * 其他参数同WebUploader
         */

        $('#uploader').diyUpload({
            url:'{:url('MultilFileUpload/uploadfile')}',
            success:function( data ) {
                console.info( data );
            },
            error:function( err ) {
                console.info( err );
            }
        });
    </script>
</body>
</html>